package RandomTest;

import java.util.Random;

public class RandomTest {
    public static void main(String[] args) {

        //使用 12345 作为种子的随机数对象 r
        Random r = new Random();
        //产生10个随机数，[0,100)
        for (int i = 0; i < 10; i++) {
            System.out.println(r.nextInt(100));
        }
        // 51, 80, 41, 28, 55...
    }
}
